//获取当前日期函数
const getNowFormatDate = () => {
    let date = new Date(),
        year = date.getFullYear(), //获取完整的年份(4位)
        month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月)
        strDate = date.getDate(); // 获取当前日(1-31)
    if (month < 10) month = `0${month}` as any; // 如果月份是个位数，在前面补0
    if (strDate < 10) strDate = `0${strDate}` as any; // 如果日是个位数，在前面补0
    let result = [];
    result.push(year, month, strDate);
    return result;
};

const minDate = new Date(2018, 1, 1);
const maxDate = new Date(2050, 1, 1);
export { getNowFormatDate, minDate, maxDate }